﻿<Window x:Class="SampleApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:r="http://rwpf.codeplex.com"
        Title="MainWindow" Height="350" Width="525">
    
    <Grid>
        <Grid.Resources>
            <r:BoolToCursorConverter x:Key="b2c" />
        </Grid.Resources>
        <StackPanel HorizontalAlignment="Left" >
            <r:IPv4Field NetmaskOnly="False" Margin="20" Cursor="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource b2c}, ConverterParameter={x:Static Cursors.Pen}}"  IP="127.0.0.1" />
            <GroupBox Header="ToggleHelper">
                <StackPanel>
                    <CheckBox Content="Check (true)" r:ToggleHelper.OriginalValue="true" />
                    <CheckBox Content="Check (false)" r:ToggleHelper.OriginalValue="false" />
                    <CheckBox Content="Check (not set)" r:ToggleHelper.OriginalValue="{x:Null}" />
                    <RadioButton GroupName="x" Content="Radio 1" r:ToggleHelper.OriginalValue="true" IsChecked="True"  />
                    <RadioButton GroupName="x" Content="Radio 2" r:ToggleHelper.OriginalValue="false" />
                    <ToggleButton  Content="ToggleButton" r:ToggleHelper.OriginalValue="false" />                    
                </StackPanel>
            </GroupBox>
            
            <r:ProgressSlider Value="50" Margin="5" IsSnapToTickEnabled="True" TickAmount="10" />
        </StackPanel>
    </Grid>
</Window>
